<?php

/**
 * WeEngine System
 *
 * (c) We7Team 2021 <https://www.w7.cc>
 *
 * This is not a free software
 * Using it under the license terms
 * visited https://www.w7.cc for more details
 */

class DemoEngineWechatServiceProvider extends \ProviderAbstract
{
    public function register()
    {
        //适配原生框架
        $_SERVER['REQUEST_URI'] = '/app-entry/' . AppData::getLinkId() . AppData::getUri();
        //这里放一些全局的变量可在应用内使用
        $GLOBALS['module_name'] = $this->moduleName;
    }
    
    public function boot()
    {
        require_once BASE_PATH . '/public/index.php';
    }
}
